/**
 * 作者:hanbo
 * 日期:2018/12/69:26
 * 描述:多点类几何体
 */
import {Geometry} from "./Geometry";
import {BoundingBox} from "./BoundingBox";

export class Multipoint extends Geometry{
    /**
     * 构造器
     * @param array {Array} 二维点数组[[x1,y1],[x2,y2]]
     */
    constructor(array) {
        super("multipoint", BoundingBox.getPolylineBox(array));
        this.array = array;
    }

    /**
     * 设置点样式
     * @param pointStyle {PointStyle} 点样式
     */
    setStyle(pointStyle){
        super.setStyle(pointStyle);
    }

}